package com.sky.service;

import com.sky.dto.EmployeeDTO;
import com.sky.dto.EmployeeLoginDTO;
import com.sky.dto.EmployeePageQueryDTO;
import com.sky.entity.Employee;
import com.sky.result.Result;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

public interface EmployeeService {

    /**
     * 员工登录
     * @param employeeLoginDTO
     * @return
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);
    //添加员工
    public Result admin(EmployeeDTO employeeDTO);
    /*
     * 分页查询
     *
     * */
    public Result page(EmployeePageQueryDTO employeePageQueryDTO);
    /*
     *启用禁用
     * @param status 状态 0表示禁用1 表示启用
     * @param id  员工id
     * @return
     * */
    public Result updentByIdStatus(Integer status, Long id);
    /*
     *修改员工第一步先根据id查询
     * @param status
     * @param id  员工id
     * @return
     * */
    public Result getById(Long id);
    //修改员工
    public Result update(EmployeeDTO employeeDTO);
}
